package com.example.demo.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.command.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 餐桌
 * </p>
 *
 * @author yangtao
 * @since 2021-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dining_table")
@Table(value = "dining_table",comment = "自动创建简单配置")
public class DiningTableEntity extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @IsKey
    @IsAutoIncrement
    private Long id;

    /**
     * 店铺id
     */
    @Column
    private Long shopId;

    /**
     * 门店名称
     */
    @Column
    @Index
    @IsNotNull
    private String shopName;

    /**
     * 编号
     */
    private String code;

    /**
     * 类型：0小桌,1中桌,2大桌,3包间
     */
    @Column
    private Integer type;

    /**
     * 人数
     */
    @Column
    private String number;

    /**
     * 餐具单价
     */
    @Column
    private BigDecimal tablewarePrice;

    /**
     * 餐桌付款二维码
     */
    @Column
    private String tableQrcode;

    /**
     * 状态:0 空闲，1 就餐中
     */
    @Column
    private Integer status;

    /**
     * 是否删除
     */
    @Column
    private Integer deleted;

    /**
     * 创建时间
     */
    @Column
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @Column
    private LocalDateTime updateTime;


}
